package com.juqimiao.linn.logging;

   class NullLogger extends Logger {
       private Class clz;

       protected NullLogger(Class clz) {
           super(clz);
           super.targetClz = clz;
       }

       @Override
       public void debug(String message) {
           getRealLogger().debug(message);
       }

       @Override
       public void debug(String message, Throwable throwable) {
           getRealLogger().debug(message, throwable);
       }

       @Override
       public void error(String message, Throwable throwable) {
           getRealLogger().error(message, throwable);
       }

       @Override
       public void info(String message) {
           getRealLogger().info(message);
       }

       @Override
       public void info(String message, Throwable throwable) {
           getRealLogger().info(message, throwable);
       }

       @Override
       public void warn(String message) {
           getRealLogger().warn(message);
       }

       @Override
       public void warn(String message, Throwable throwable) {
           getRealLogger().warn(message, throwable);
       }

       public Logger getRealLogger(){
           return Logger.getLogger(super.targetClz);
       }
   }
